package com.suse.generator.mybatis.plus;

public class GeneratorTest {

    private static final String url = "jdbc:mysql://localhost:3306/zxjy_user?nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai";
    private static final String driver = "com.mysql.cj.jdbc.Driver";
    private static final String username = "root";
    private static final String password = "gyb176714";
    private static final String author = "辜玉彬";
    private static final String project = "D:\\Project\\Spring Boot Project\\education\\service\\service-admin\\service-admin-user";
    private static final String parent = "com.suse.service.admin.user";
    private static final String tablePrefix = "acl_";
    private static final String tableLike = "";
    private static final String table = "";
    private static final String[] tables = new String[]{"acl_role","acl_user_role","acl_menu","acl_role_menu"};

    public static void main(String[] args) {
        GeneratorUtil.create()
                .dataSourceConfig((builder) -> builder.url(url).driver(driver).username(username).password(password))
                .globalConfig((builder) -> builder.project(project).author(author))
                .packageConfig((builder) -> builder.parent(parent))
                .strategyConfig((builder) -> builder.tablePrefix(tablePrefix).include(tables))
                .generate();
    }

}